package cn.xopencode.securityservice.convert.activity;


import cn.xopencode.common.framework.vo.PageResult;
import cn.xopencode.securityservice.dal.mysql.dataobject.activity.ActivityDO;
import cn.xopencode.securityservice.rpc.activity.dto.ActivityCreateReqDTO;
import cn.xopencode.securityservice.rpc.activity.dto.ActivityRespDTO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface ActivityConvert {

    ActivityConvert INSTANCE = Mappers.getMapper(ActivityConvert.class);
    ActivityDO convert(ActivityCreateReqDTO bean);
    ActivityRespDTO convert(ActivityDO bean);
    PageResult<ActivityRespDTO> convertPage(IPage<ActivityDO> page);

}

